package com.planner.core.action.search;

import com.india.Mode;
import com.india.StopNode;

public class JourneyImpl implements Journey {
	private StopNode origin;
	private StopNode destination;
	private Mode mode;
	private String code;
	public JourneyImpl(StopNode origin, StopNode destination, Mode mode,
			String code) {
		super();
		this.origin = origin;
		this.destination = destination;
		this.mode = mode;
		this.code = code;
	}
	/* (non-Javadoc)
	 * @see com.planner.core.action.search.Journey#getOrigin()
	 */
	@Override
	public StopNode getOrigin() {
		return origin;
	}
	/* (non-Javadoc)
	 * @see com.planner.core.action.search.Journey#getDestination()
	 */
	@Override
	public StopNode getDestination() {
		return destination;
	}
	/* (non-Javadoc)
	 * @see com.planner.core.action.search.Journey#getMode()
	 */
	@Override
	public Mode getMode() {
		return mode;
	}
	/* (non-Javadoc)
	 * @see com.planner.core.action.search.Journey#getCode()
	 */
	@Override
	public String getCode() {
		return code;
	}
}
